import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
import './assets/js/rem'
import Api from './assets/js/axios-simple';
import filter from './assets/js/filter'
import md5 from 'js-md5';
import { bridge } from './assets/js/AlipayJSBridge'


Vue.config.productionTip = false;
Vue.prototype.$api = Api;
Vue.prototype.$md5 = md5;
Vue.prototype.$bridge = bridge;
Vue.use(Mint);
router.beforeEach((to, from, next) => {
  /* 路由发生变化修改页面title */
  if (to.meta.title) {
    document.title = to.meta.title;
  }
  next();
});
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
Vue.filter('dateFormat',filter.myFun.dateFormat);
Vue.filter('isNull',filter.myFun.isNull);

